import java.util.Comparator;

class MaxValue{
    public <E extends Comparable<E>> E maxval(E[] array){
        E max = array[0];
        for (int i = 1; i < array.length; i++) {
            if(max.compareTo(array[i]) < 0){
                max = array[i];
            }
        }
        return max;
    }
}

class User<T extends Comparator<T>>{

    private Object[] array = new Object[10];

    public T getArray(int pos){
        return (T)array[pos];
    }

    public void setArray(int pos,T val){
        array[pos] = val;
    }

}

public class Text {
}
